package com.jason.bbs.router.feign.hystrix;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.jason.bbs.bean.ResultJson;
import com.jason.bbs.bean.user.UserInfo;
import com.jason.bbs.router.feign.PmsService;
@Component
public class PmsHystrix implements PmsService {
	@Value("${debug:false}")
	private boolean debug;
	@Override
	public ResultJson checkLogin(String loginId) {
		ResultJson code = new ResultJson();
		if (debug) {
			code.setCode(200);
			code.setMessage("成功");
			code.put("existis", StringUtils.isNoneBlank(loginId));
		} else {
			code.setCode(500);
			code.setMessage("用户模块暂时无法提供服务");
		}
		return code;
	}

}
